<?php
class Assets{

	public $baseUrl = "/";
	public $domain = "http://lyad.fr";
	
	public function __construct(){
		$this->baseUrl = $this->baseUrl();
		$this->domain = $this->domain();
				
	}

	public function domain() {
		return $this->baseUrl();
	}
	public function baseUrl() {
		return sprintf(
			"%s://%s",
			isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' ? 'https' : 'http',
			$_SERVER['HTTP_HOST']
		);
	}
}
?>